import 'package:get/get.dart';

class SettingsService extends GetxService {
  // 应用名称
  var title = 'GetX 教程'.obs;

  Future<SettingsService> init() async {
    print('$runtimeType delays 1 sec');
    await 1.delay();
    print('$runtimeType ready!');
    return this;
  }

  @override
  void onInit() {
    super.onInit();
    print('《《 SettingsService - onInit');
  }

  @override
  void onReady() {
    super.onReady();
    print('《《 SettingsService - onReady');
  }

  @override
  void onClose() {
    super.onClose();
    print('《《 SettingsService - onClose');
  }
}